// 模拟API数据
export const hotCities = [
  { id: 1, name: '北京', image: 'https://picsum.photos/300/200?random=1', visitCount: 12500 },
  { id: 2, name: '上海', image: 'https://picsum.photos/300/200?random=2', visitCount: 10800 },
  { id: 3, name: '成都', image: 'https://picsum.photos/300/200?random=3', visitCount: 9200 },
  { id: 4, name: '杭州', image: 'https://picsum.photos/300/200?random=4', visitCount: 8700 },
  { id: 5, name: '三亚', image: 'https://picsum.photos/300/200?random=5', visitCount: 7900 },
  { id: 6, name: '西安', image: 'https://picsum.photos/300/200?random=6', visitCount: 7500 }
];

export const hotTravelNotes = [
  {
    id: 1,
    title: '成都三日游记',
    cover: 'https://picsum.photos/600/400?random=10',
    author: '旅行者小明',
    avatar: 'https://picsum.photos/100/100?random=101',
    likeCount: 1250,
    viewCount: 5600,
    createTime: '2023-10-15',
    summary: '成都，一座来了就不想离开的城市，这里有美食、美景和熊猫...'
  },
  {
    id: 2,
    title: '北京文化之旅',
    cover: 'https://picsum.photos/600/400?random=11',
    author: '摄影师大卫',
    avatar: 'https://picsum.photos/100/100?random=102',
    likeCount: 980,
    viewCount: 4300,
    createTime: '2023-11-02',
    summary: '走进北京的胡同，感受老北京的文化底蕴，品尝地道的北京小吃...'
  },
  {
    id: 3,
    title: '杭州西湖一日游',
    cover: 'https://picsum.photos/600/400?random=12',
    author: '文艺青年小李',
    avatar: 'https://picsum.photos/100/100?random=103',
    likeCount: 850,
    viewCount: 3700,
    createTime: '2023-12-05',
    summary: '西湖，果然名不虚传，烟雨朦胧中的西湖更显诗情画意...'
  }
];

export const hotTravelPlans = [
  {
    id: 1,
    title: '成都熊猫基地+锦里古街+宽窄巷子一日游',
    cover: 'https://picsum.photos/600/400?random=20',
    days: 1,
    viewCount: 3500,
    favoriteCount: 890,
    tags: ['美食', '文化', '休闲']
  },
  {
    id: 2,
    title: '北京故宫+长城三日精华游',
    cover: 'https://picsum.photos/600/400?random=21',
    days: 3,
    viewCount: 5200,
    favoriteCount: 1200,
    tags: ['历史', '文化', '经典']
  },
  {
    id: 3,
    title: '三亚阳光海岸度假5日游',
    cover: 'https://picsum.photos/600/400?random=22',
    days: 5,
    viewCount: 4100,
    favoriteCount: 950,
    tags: ['海滩', '度假', '美食']
  }
];

export const hotCommunityPosts = [
  {
    id: 1,
    title: '分享一个超实用的旅行收纳技巧',
    content: '大家好，今天我要分享一个我多年旅行总结出的收纳技巧，特别适合长途旅行...',
    author: '旅行达人',
    avatar: 'https://picsum.photos/100/100?random=201',
    createTime: '2023-12-10',
    likeCount: 345,
    commentCount: 42,
    images: ['https://picsum.photos/300/200?random=30', 'https://picsum.photos/300/200?random=31']
  },
  {
    id: 2,
    title: '求推荐适合一个人旅行的地方',
    content: '最近想一个人出去散心，有没有适合一个人旅行的地方推荐？预算适中，安全第一...',
    author: '独行侠',
    avatar: 'https://picsum.photos/100/100?random=202',
    createTime: '2023-12-15',
    likeCount: 267,
    commentCount: 78,
    images: []
  },
  {
    id: 3,
    title: '旅行中遇到的那些有趣的人和事',
    content: '旅行最大的乐趣莫过于遇见不同的人和事，分享一下我在云南遇到的一位老奶奶...',
    author: '故事收集者',
    avatar: 'https://picsum.photos/100/100?random=203',
    createTime: '2023-12-20',
    likeCount: 412,
    commentCount: 53,
    images: ['https://picsum.photos/300/200?random=32']
  }
];

export const cityList = [
  { id: 1, name: '北京', image: 'https://picsum.photos/300/200?random=40', description: '中国的首都，拥有丰富的历史文化遗产' },
  { id: 2, name: '上海', image: 'https://picsum.photos/300/200?random=41', description: '国际化大都市，东方明珠' },
  { id: 3, name: '成都', image: 'https://picsum.photos/300/200?random=42', description: '休闲之都，美食天堂' },
  { id: 4, name: '杭州', image: 'https://picsum.photos/300/200?random=43', description: '风景秀丽的天堂之城' },
  { id: 5, name: '三亚', image: 'https://picsum.photos/300/200?random=44', description: '热带海滨旅游城市' },
  { id: 6, name: '西安', image: 'https://picsum.photos/300/200?random=45', description: '古都，十三朝古都' },
  { id: 7, name: '重庆', image: 'https://picsum.photos/300/200?random=46', description: '山城，火锅之都' },
  { id: 8, name: '广州', image: 'https://picsum.photos/300/200?random=47', description: '南方的经济中心' }
];

export const citySpots = [
  { id: 1, cityId: 1, name: '故宫', image: 'https://picsum.photos/300/200?random=50', description: '中国明清两代的皇家宫殿', rating: 4.8 },
  { id: 2, cityId: 1, name: '长城', image: 'https://picsum.photos/300/200?random=51', description: '中国古代伟大的防御工程', rating: 4.9 },
  { id: 3, cityId: 1, name: '颐和园', image: 'https://picsum.photos/300/200?random=52', description: '保存最完整的皇家园林', rating: 4.7 },
  { id: 4, cityId: 2, name: '外滩', image: 'https://picsum.photos/300/200?random=53', description: '上海的标志性建筑群', rating: 4.8 },
  { id: 5, cityId: 2, name: '东方明珠', image: 'https://picsum.photos/300/200?random=54', description: '上海的地标建筑', rating: 4.6 },
  { id: 6, cityId: 3, name: '熊猫基地', image: 'https://picsum.photos/300/200?random=55', description: '可以近距离观看大熊猫的基地', rating: 4.9 }
];

export const cityFoods = [
  { id: 1, cityId: 1, name: '北京烤鸭', image: 'https://picsum.photos/300/200?random=60', description: '北京最著名的传统美食', rating: 4.9 },
  { id: 2, cityId: 3, name: '火锅', image: 'https://picsum.photos/300/200?random=61', description: '成都最具代表性的美食', rating: 4.8 },
  { id: 3, cityId: 3, name: '担担面', image: 'https://picsum.photos/300/200?random=62', description: '四川特色面食', rating: 4.7 },
  { id: 4, cityId: 6, name: '肉夹馍', image: 'https://picsum.photos/300/200?random=63', description: '西安特色小吃', rating: 4.6 },
  { id: 5, cityId: 6, name: '凉皮', image: 'https://picsum.photos/300/200?random=64', description: '陕西传统小吃', rating: 4.5 }
];

export const travelPlans = [
  {
    id: 1,
    title: '成都休闲3日游',
    cover: 'https://picsum.photos/600/400?random=70',
    days: 3,
    createTime: '2023-11-10',
    startDate: '2024-01-15',
    endDate: '2024-01-17',
    cityId: 3,
    cityName: '成都',
    budget: 2000,
    days_detail: [
      {
        day: 1,
        items: [
          { time: '09:00-12:00', title: '参观熊猫基地', type: 'attraction', location: '成都大熊猫繁育研究基地' },
          { time: '12:30-14:00', title: '午餐', type: 'food', location: '宽窄巷子某餐厅' },
          { time: '14:30-17:00', title: '游览宽窄巷子', type: 'attraction', location: '宽窄巷子' }
        ]
      },
      {
        day: 2,
        items: [
          { time: '09:00-12:00', title: '参观杜甫草堂', type: 'attraction', location: '杜甫草堂博物馆' },
          { time: '12:30-14:00', title: '午餐', type: 'food', location: '某地道餐厅' },
          { time: '14:30-17:00', title: '游览锦里古街', type: 'attraction', location: '锦里古街' }
        ]
      },
      {
        day: 3,
        items: [
          { time: '09:00-12:00', title: '青城山一日游', type: 'attraction', location: '青城山' },
          { time: '12:30-14:00', title: '午餐', type: 'food', location: '山间农家乐' },
          { time: '14:30-17:00', title: '返回市区', type: 'transport', location: '成都市区' }
        ]
      }
    ]
  }
];

export const travelNotes = [
  {
    id: 1,
    title: '成都三日游记',
    cover: 'https://picsum.photos/600/400?random=80',
    author: '旅行者小明',
    avatar: 'https://picsum.photos/100/100?random=101',
    authorAvatar: 'https://picsum.photos/100/100?random=101',
    userId: 1,
    createTime: '2023-10-15',
    date: '2023-10-15',
    likes: 1250,
    views: 5600,
    comments: 12,
    description: '成都，一座来了就不想离开的城市，这里有美食、美景和熊猫...',
    visibility: 'public',
    status: 'approved',
    cityId: 3,
    cityName: '成都',
    tags: ['美食','文化','休闲'],
    content: `
      <p>成都，一座来了就不想离开的城市，这里有美食、美景和熊猫...</p>
      <p>第一天，我来到了成都大熊猫繁育研究基地，看到了可爱的大熊猫，真是太治愈了！</p>
      <img src="https://picsum.photos/600/400?random=81" alt="熊猫基地" />
      <p>中午在宽窄巷子吃了地道的川菜，麻辣鲜香，回味无穷。</p>
      <img src="https://picsum.photos/600/400?random=82" alt="川菜" />
      <p>第二天，我参观了杜甫草堂，感受了浓厚的文化氛围。</p>
      <img src="https://picsum.photos/600/400?random=83" alt="杜甫草堂" />
      <p>第三天，我去了青城山，青山绿水，空气清新，是放松身心的好地方。</p>
      <img src="https://picsum.photos/600/400?random=84" alt="青城山" />
    `
  },
  {
    id: 2,
    title: '北京文化之旅',
    cover: 'https://picsum.photos/600/400?random=85',
     author: '旅行者小明',
     authorAvatar: 'https://picsum.photos/100/100?random=101',
    userId: 1,
    date: '2023-11-02',
    description: '走进北京的胡同，感受老北京的文化底蕴，品尝地道北京小吃',
    likes: 980,
    views: 4300,
    comments: 5,
    visibility: 'private',
    status: 'draft',
    cityId: 1,
    cityName: '北京',
    tags: ['历史','文化'],
    content: `
      <p>从故宫到南锣鼓巷，一路都是历史的回响。</p>
      <img src="https://picsum.photos/600/400?random=86" alt="北京胡同" />
    `
  },
  {
    id: 3,
    title: '杭州西湖一日游',
    cover: 'https://picsum.photos/600/400?random=87',
     author: '旅行者小明',
     authorAvatar: 'https://picsum.photos/100/100?random=101',
    userId: 1,
    date: '2023-12-05',
    description: '烟雨朦胧中的西湖更显诗情画意',
    likes: 850,
    views: 3700,
    comments: 3,
    visibility: 'public',
    status: 'pending',
    cityId: 4,
    cityName: '杭州',
    tags: ['风景','摄影'],
    content: `
      <p>西湖边走走停停，感受江南的温柔。</p>
      <img src="https://picsum.photos/600/400?random=88" alt="西湖" />
    `
  },
  {
    id: 4,
    title: '三亚海滩度假指南',
    cover: 'https://picsum.photos/600/400?random=89',
    author: '海岛玩家',
    authorAvatar: 'https://picsum.photos/100/100?random=104',
    userId: 4,
    date: '2024-01-08',
    description: '阳光、沙滩和海风，完美度假指南',
    likes: 635,
    views: 2800,
    comments: 8,
    visibility: 'public',
    status: 'approved',
    cityId: 5,
    cityName: '三亚',
    tags: ['海滩','度假','美食'],
    content: `
      <p>亚龙湾的海水清澈，适合浮潜与拍照。</p>
      <img src="https://picsum.photos/600/400?random=90" alt="三亚海滩" />
    `
  },
  {
    id: 5,
    title: '西安古城探秘',
    cover: 'https://picsum.photos/600/400?random=91',
     author: '旅行者小明',
     authorAvatar: 'https://picsum.photos/100/100?random=101',
    userId: 1,
    date: '2024-02-12',
    description: '从城墙到碑林，处处皆故事',
    likes: 220,
    views: 930,
    comments: 1,
    visibility: 'private',
    status: 'draft',
    cityId: 6,
    cityName: '西安',
    tags: ['历史','文化'],
    content: `
      <p>在城墙上骑行，俯瞰古城的脉络。</p>
      <img src="https://picsum.photos/600/400?random=92" alt="西安城墙" />
    `
  }
];

export const communityPosts = [
  {
    id: 1,
    title: '分享一个超实用的旅行收纳技巧',
    content: `
      <p>大家好，今天我要分享一个我多年旅行总结出的收纳技巧，特别适合长途旅行...</p>
      <p>首先，使用压缩袋可以节省大量空间，尤其是对于冬季厚重的衣物。</p>
      <img src="https://picsum.photos/600/400?random=90" alt="压缩袋收纳" />
      <p>其次，小物品可以使用药盒或首饰盒分类存放，既整洁又方便查找。</p>
      <img src="https://picsum.photos/600/400?random=91" alt="小物品收纳" />
      <p>最后，行李箱内使用收纳格或收纳包，可以让物品分门别类，取用方便。</p>
    `,
    author: '旅行达人',
    avatar: 'https://picsum.photos/100/100?random=201',
    createTime: '2023-12-10',
    likeCount: 345,
    commentCount: 42,
    images: ['https://picsum.photos/300/200?random=30', 'https://picsum.photos/300/200?random=31']
  }
];

export const aiSuggestions = [
  {
    id: 1,
    title: '根据您的喜好，推荐成都3日游路线',
    content: '基于您喜欢美食和文化的偏好，我们为您推荐了这条路线...',
    cover: 'https://picsum.photos/600/400?random=100',
    tags: ['美食', '文化', '休闲']
  },
  {
    id: 2,
    title: '冬季最适合旅行的5个目的地',
    content: '冬季来临，这些地方是避寒或赏雪的绝佳选择...',
    cover: 'https://picsum.photos/600/400?random=101',
    tags: ['冬季', '避寒', '赏雪']
  }
];

export const navigationRoutes = [
  {
    id: 1,
    startPoint: '成都大熊猫繁育研究基地',
    endPoint: '宽窄巷子',
    distance: '15.5公里',
    duration: '约40分钟',
    trafficStatus: '畅通',
    routes: [
      { type: 'car', duration: '40分钟', cost: '打车约45元' },
      { type: 'bus', duration: '1小时10分钟', cost: '公交2元' },
      { type: 'walk', duration: '3小时20分钟', cost: '免费' }
    ]
  }
]

export const budgets = [
  {
    id: 1,
    userId: 1, // 新增：关联用户
    travelPlanId: 1, // 新增：关联旅行计划
    title: '成都三日游预算',
    amount: 10000,
    usedAmount: 2100,
    categories: [
      { name: '住宿', budget: 3000, used: 900 },
      { name: '餐饮', budget: 2500, used: 650 },
      { name: '交通', budget: 1500, used: 320 },
      { name: '门票', budget: 1500, used: 230 },
      { name: '购物', budget: 2000, used: 0 }
    ]
  },
  {
    id: 2,
    userId: 1,
    travelPlanId: 1,
    title: '成都行-餐饮专项预算',
    amount: 3000,
    usedAmount: 1100,
    categories: [
      { name: '餐饮', budget: 3000, used: 1100 }
    ]
  }
]

export const expenses = [
  { id: 1, budgetId: 1, category: '住宿', amount: 300, date: '2023-10-15', description: '青年旅舍住宿' },
  { id: 2, budgetId: 1, category: '住宿', amount: 300, date: '2023-10-16', description: '青年旅舍住宿' },
  { id: 3, budgetId: 1, category: '住宿', amount: 300, date: '2023-10-17', description: '青年旅舍住宿' },
  { id: 4, budgetId: 1, category: '餐饮', amount: 150, date: '2023-10-15', description: '午餐和晚餐' },
  { id: 5, budgetId: 1, category: '餐饮', amount: 200, date: '2023-10-16', description: '一日三餐' },
  { id: 6, budgetId: 1, category: '餐饮', amount: 300, date: '2023-10-17', description: '火锅晚餐' },
  { id: 7, budgetId: 1, category: '交通', amount: 120, date: '2023-10-15', description: '机场到市区打车' },
  { id: 8, budgetId: 1, category: '交通', amount: 200, date: '2023-10-16', description: '市区交通' },
  { id: 9, budgetId: 1, category: '门票', amount: 230, date: '2023-10-16', description: '熊猫基地门票' },
  { id: 10, budgetId: 2, category: '餐饮', amount: 80, date: '2023-10-15', description: '早餐' },
  { id: 11, budgetId: 2, category: '餐饮', amount: 120, date: '2023-10-15', description: '午餐' },
  { id: 12, budgetId: 2, category: '餐饮', amount: 180, date: '2023-10-15', description: '晚餐' }
]

export const cityAchievements = [
  { id: 1, cityId: 1, name: '北京探索者', image: 'https://picsum.photos/200/200?random=110', description: '游览北京5个著名景点', progress: 3, total: 5 },
  { id: 2, cityId: 2, name: '上海时尚达人', image: 'https://picsum.photos/200/200?random=111', description: '打卡上海3个时尚地标', progress: 1, total: 3 },
  { id: 3, cityId: 3, name: '成都吃货', image: 'https://picsum.photos/200/200?random=112', description: '品尝成都8种特色美食', progress: 5, total: 8 }
]

export const userProfile = {
  id: 1,
  username: '旅行者小明',
  avatar: 'https://picsum.photos/100/100?random=120',
  bio: '热爱旅行，记录生活',
  followersCount: 235,
  followingCount: 112,
  travelNotesCount: 15,
  plansCount: 8,
  postsCount: 23,
  achievements: [
    { id: 1, name: '旅行新手', image: 'https://picsum.photos/200/200?random=121', description: '发布第一篇游记' },
    { id: 2, name: '摄影达人', image: 'https://picsum.photos/200/200?random=122', description: '上传100张旅行照片' }
  ]
}

export const userFavorites = [
  { id: 1, type: 'travelNote', itemId: 1, title: '成都三日游记', cover: 'https://picsum.photos/300/200?random=130' },
  { id: 2, type: 'travelPlan', itemId: 1, title: '成都休闲3日游', cover: 'https://picsum.photos/300/200?random=131' },
  { id: 3, type: 'communityPost', itemId: 1, title: '分享一个超实用的旅行收纳技巧', cover: 'https://picsum.photos/300/200?random=132' }
];

export const notifications = [
  { id: 1, type: 'like', content: '用户"旅行达人"点赞了你的游记', time: '2023-12-20 14:30', read: false },
  { id: 2, type: 'comment', content: '用户"独行侠"评论了你的帖子', time: '2023-12-19 09:15', read: true },
  { id: 3, type: 'system', content: '你获得了新的成就"摄影达人"', time: '2023-12-18 16:45', read: false }
];